﻿<%@ Page Language="C#" MasterPageFile="~/A_LetsDeal/MasterPage.master" AutoEventWireup="true" CodeFile="thongtinsanpham.aspx.cs" Inherits="A_LetsDeal_thongtinsanpham"  %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder3" Runat="Server">
 <div style="float:right;">
            <asp:Button CssClass="buttonsearch" Text="Tìm kiếm" runat="server" 
                  ID="bt_timkiem" onclick="bt_timkiem_Click"/>
                </div>            
            <div style="float:right;">
            <asp:TextBox ID="txt_timkiem"  CssClass="textsearch" runat="server"/>
            </div>
</asp:Content>   
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <%--<link href="../CSS_JS/Slide/themes/style.css" rel="stylesheet" type="text/css" />--%>
    <link href="../CSS_JS/Slide/nivo-slider.css" rel="stylesheet" type="text/css" />
    <link href="../CSS_JS/Slide/themes/pascal/pascal.css" rel="stylesheet" type="text/css" />
    <link href="../CSS_JS/Slide/themes/orman/orman.css" rel="stylesheet" type="text/css" />
    <link href="../CSS_JS/Slide/themes/default/default.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
$(function () {
	shortly = new Date(); 
    shortly.setSeconds(shortly.getSeconds() + <%=sogiay %>); 
	$('#defaultCountdown').countdown({onExpiry: liftOff, until: shortly});
});
function liftOff() { 
    $.ajax({
      type: "GET",
      url: "hethan.aspx",
      data: { id: "<%=Request.QueryString["id"] %>"}
    }).done(function( ) {
        window.location = "Default.aspx?id=<%=Request.QueryString["id"] %>";
    });
} 
</script>
<style type="text/css">
.button-cm {
background: url(../Photos/btn-gui.png) no-repeat;
width: 127px;
height: 52px;
margin: 0 auto;
}    
.noidung-cm
{
	width:570px;
	background-color:Silver;
	border-right:solid 2px #d7d7d7;
	border-bottom:solid 2px #d7d7d7;
	-webkit-border-bottom-left-radius:5px;
	-webkit-border-bottom-right-radius:5px;
	-webkit-border-top-left-radius:5px;
	-webkit-border-top-right-radius:5px;
}
.total-comment {
background: url(../Photos/comment-bg.png) no-repeat;
width: 100%;
height: 50px;
left: 0;
bottom: -39px;
padding: 9px 0 0 0px;
cursor: pointer;
float:left;
border-bottom:solid 1px silver;
}
.icon-comment {
background: url(../Photos/comment-ico.png) no-repeat;
width: 25px;
height: 20px;
}
</style>
<div class="tieude" style="margin-top:-32px;background-color:white;">
            <div class="tieude-text" style="color:Black">SẢN PHẨM MỚI</div></div>
<div class="noidung">   
    <table style="width:770px;margin:5px auto;">
    <tr>
     <td colspan="3">
        <span id="tensp" style="float:left;margin-left:10px;"><asp:Literal ID="ten_sp" runat="server"></asp:Literal></span>
        <asp:HiddenField ID="hd_stt" runat="server" />
    </td>
    </tr>
    <tr>
        <td rowspan="2" style="width:570px;text-align:center;" colspan="2" >
        <div id="container" style="width:440px;margin-left:70px">
         <div class="slider-wrapper theme-default">
            <div class="ribbon"></div>
            <div id="slider" class="nivoSlider">
            <asp:Repeater ID="Repeater1" runat="server" onitemdatabound="Repeater1_ItemDataBound">
                <ItemTemplate>
                    <asp:Image ID="imgsp"  runat="server"/>
                </ItemTemplate>
            </asp:Repeater>
		<script type="text/javascript" src="../CSS_JS/Slide/jquery.nivo.slider.pack.js"></script>
    <script type="text/javascript">
    $(window).load(function() {
        $('#slider').nivoSlider();
    });
    </script>
    </div></div></div>
        </td>
        <td style="background-color:#0674BD;border:solid 1px silver;text-align:left;width:25%;-moz-border-radius-bottomleft:5px;
	-webkit-border-bottom-left-radius:5px;
	-moz-border-radius-bottomright:5px;
	-webkit-border-bottom-right-radius:5px;
	-moz-border-radius-topleft:5px;
	-webkit-border-top-left-radius:5px;
	-moz-border-radius-topright:5px;
	-webkit-border-top-right-radius:5px;">
            <span id="giaban">Giá bán </span><span id="gia_ban"><asp:Literal ID="lit_giaban" runat="server"></asp:Literal></span>
            <br />
            <span id="giagoc">Giá gốc </span><span id="gia_goc"><asp:Literal ID="lit_giagoc" runat="server"></asp:Literal></span>
            <center><br /><asp:HyperLink id="lbt_dathang" CssClass="bt_dathang" runat="server" Text="Thêm vào giỏ hàng" Height="20px" Width="150px"></asp:HyperLink></center>
        </td>
    </tr>
     <tr>
        <td style="background-color:#0fb4e7;border:solid 1px silver;text-align:center;-moz-border-radius-bottomleft:5px;
	-webkit-border-bottom-left-radius:5px;
	-moz-border-radius-bottomright:5px;
	-webkit-border-bottom-right-radius:5px;
	-moz-border-radius-topleft:5px;
	-webkit-border-top-left-radius:5px;
	-moz-border-radius-topright:5px;
	-webkit-border-top-right-radius:5px;" rowspan="2" valign="top">
        <br />
           </font><span><font color="yellow">Số voucher còn </font></span><font color="white"><asp:Literal ID="lit_vccon" runat="server"></asp:Literal></font>
           <br />
           <span><font color="yellow">Đã có </font></span><font color="white"><asp:Literal ID="lit_songuoimua" runat="server"></asp:Literal></font><span><font color="yellow"> voucher được đặt</font></span>
            <asp:ListBox CssClass="danhsach" ID="txtdsnguoidat" runat="server" TextMode="MultiLine" Width ="90%" Height="75%" ></asp:ListBox>
        </td>
    </tr>
    <tr>
        <td valign="top" style="width:30%" align="center">
           <span>Thời gian đặt hàng đến </span>
           <br /><font style="color:Blue" size="+1"><asp:Literal ID="lit_ngayhethan" runat="server"></asp:Literal></font>
            </td>
           <td style="padding-left:20px;">
           <span>Còn lại </span>
           <style type="text/css">
                @import "jquery.countdown.css";
                #defaultCountdown { width: 240px; }
            </style>
           <div id="defaultCountdown"></div>
        </td>
    </tr>
    <tr>
        <td colspan="2" style="border-top:solid 1px silver;border-left:solid 1px silver;">
        <font size="+1" color="blue">Thông tin sản phẩm</font><br />
        <asp:Literal ID="lit_ttsp" runat="server"></asp:Literal>
        </td>
        <td></td>
    </tr>
    <tr>
        <td style="border-top:solid 1px silver;border-left:solid 1px silver;" colspan="2">
        <font size="+1" color="blue">Điều kiện sử dụng</font><br />
        <asp:Literal ID="lit_dksd" runat="server"></asp:Literal>
        </td>
        <td></td>
    </tr>
    <tr>
        <td colspan="2" style="border-top:solid 1px silver;border-left:solid 1px silver;">
        <font size="+1" color="blue">Thông tin chi tiết</font><br />
        <asp:Literal ID="lit_ttct" runat="server"></asp:Literal>
        </td>
        <td></td>
    </tr>
    </table>
    </div>
<% if (Session["username"] != null)
   {%>
<div class="noidung">   
<div style="width:90%;margin:0px auto;">
<table>
<tr>
    <td colspan="2">
    <span><h1 style="font-size:small;color:Blue;">Ý kiến của bạn về sản phẩm</h1></span>
    </td>
</tr>
<tr>
    <td style="width:90%">
        <asp:TextBox ID="txt_comment" runat="server" TextMode="MultiLine" Wrap="true" Width="100%" Rows="7" Height="100px"></asp:TextBox>  
    </td>
    <td align="right" valign="bottom">
    <span style="margin-left:15px;"><asp:Button ID="Button1" CssClass="button-cm" 
            runat="server" onclick="Button1_Click" /></span>
    </td>
</tr>
</table>
</div>
<div style="width:25px;">
&nbsp&nbsp&nbsp
</div>
</div>
<%} %>
<div class="noidung">   
<div style="width:90%;margin:0px auto;">
<table width="100%">
<tr>
    <td>
    <span><h1 style="font-size:small;color:Blue;">Danh sách bình luận sản phẩm</h1></span>
    </td>
</tr>

    <asp:Repeater ID="Repeater2" runat="server" OnItemDataBound="Repeater2_ItemDataBound">
    <ItemTemplate>
    <tr>
        <td>
        <div style="float:right;margin-right:0px;width:100%;">
            <asp:HyperLink ID="hyp_xoa" runat="server"></asp:HyperLink>
            <asp:HyperLink ID="hyp_traloi" runat="server"></asp:HyperLink>
        </div>
        <div class="total-comment">
            <span class="icon-comment"></span>
            <span><asp:Literal ID="lit_cm" runat="server"></asp:Literal></span>
        </div>
        </td>
    </tr>
    </ItemTemplate>
    </asp:Repeater>
</table>
</div>
<div style="width:25px;">
&nbsp&nbsp&nbsp
</div>
</div>
</asp:Content>

